﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ProjectListModels>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="bor_cor">
  <div class="bar_org" align="center">&nbsp;<%=ViewData["Title"] %></div>	
  <%foreach (var item in Model.Projects)
      { %>
    <div class="pad" style="text-align: center;">
        <% string imgPath = (item.ImagePath != null && item.ImagePath != string.Empty) ? SDT.Lib.Common.Utils.GenThumbnail(item.ID, 202, 130, item.ImagePath, Model.ImagePath, Model.ImageUrl) : SDT.Lib.Common.Globals.DefaultLogo; %>
        
        <div align="center"><a href="/project/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>"><img alt="<%=Html.Encode(item.Title) %>" src="<%=imgPath %>" class="bor_img" width="202" height="130" /></a></div>
        <div><a style="margin-top: 2px; color: #147AC5; text-align: center;" href="/project/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Title)%>"><strong><%=Html.Encode(item.Title)%></strong></a></div>
    </div>
    <%} %>
</div>
<div class="clear"></div>
